//
//  HXCeaseTableViewCell.m
//  KD
//
//  Created by ifly on 16/5/16.
//  Copyright © 2016年 Whx. All rights reserved.
//

#import "HXCeaseTableViewCell.h"

@interface HXCeaseTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *UsernameLabel;
@property (weak, nonatomic) IBOutlet UILabel *stateLabel;
@property (weak, nonatomic) IBOutlet UILabel *startTimeLabel;
@end

@implementation HXCeaseTableViewCell

- (void)setData:(HXCeaseListModel *)data{
    _data = data;
    self.nameLabel.text = [NSString stringWithFormat:@"项目名称: %@",data.ProjectName];
    self.UsernameLabel.text = [NSString stringWithFormat:@"名称: %@",data.UserName];
    self.stateLabel.text = [NSString stringWithFormat:@"状态: %@",data.StateText];
    if ([data.StateText isEqualToString:@"整改"]) {
        self.startTimeLabel.text = [NSString stringWithFormat:@"开始时间: %@ \n结束时间: %@",data.StartDateTime,data.EndDateTime];
    }else{
         self.startTimeLabel.text = @"";
    }
}
@end
